package com.tzy.myfootprint.mapper;

import com.tzy.common.entity.MyFootprint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 我的足迹表 Mapper 接口
 * </p>
 *
 * @author ljh
 * @since 2022-03-13
 */
public interface MyFootprintMapper extends BaseMapper<MyFootprint> {

	List<MyFootprint> listFootprint(int userId);

	/**
	 * 批量删除足迹
	 * @param shopId 店铺ID
	 * @return 返回受影响的行数
	 */
	int deleteFootprint(@Param("userId") int userId, @Param("shopId") Integer[] shopId);
}
